<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">

<div align="center">
<ui:composition
	template="secure/templates/template.xhtml">
	<ui:define name="title">
	 	Signature Details Page
	</ui:define>
	<ui:param name="page" value="home" />
	<ui:define name="header">
		<ui:include src="/secure/headerForPublic.xhtml" />
	</ui:define>
	<ui:define name="menu">
		<h:form id="menu">

			<div align="center">
			<br />
			<br />
			
			<br />
			<br />
			</div>

		</h:form>
	</ui:define>
	
	
	
	

	<ui:define name="body">
		<h:form>	
			<h:panelGrid columns="1" width="100%" styleClass="outerTable" columnClasses="standardTable_ColumnCentered">
				<f:facet name="header">
					<h:outputText value="Signature Details"  />
				</f:facet>
		
			<div class="allPeopleHolder" >
				<h:dataTable id="signatureDetails" value="#{clientPage.sig}" var="sig" 
			 		width="100%" >
			 		<h:column >
			 			<f:facet name="header">
							<h:outputText value="Type of Document" />
						</f:facet>
						<h:outputText value="#{sig.document.documentType.description}" />          					
         			</h:column> 
         			<h:column >
			 			<f:facet name="header">
							<h:outputText value="Received Date Time"/>
						</f:facet>
						<h:outputText value="#{sig.document.receivedDateTime}"> 
							<f:convertDateTime 
									dateStyle="long"
									timeStyle="long"
									timeZone="America/New_York" 
									type="both"/>
						</h:outputText>         					
         			</h:column> 
         			<h:column >
			 			<f:facet name="header">
							<h:outputText value="Document Title" />
						</f:facet>
						<h:outputText value="#{sig.document.title}" />          					
         			</h:column> <h:column >
			 			<f:facet name="header">
							<h:outputText value="Signature Tracking Id" />
						</f:facet>
						<h:outputText value="#{sig.signatureTrackingId}" />          					
         			</h:column> 
         			  
         		</h:dataTable>  
        	 </div>
        	</h:panelGrid>     
	      
		</h:form>
		<h:form>	
			<h:panelGrid columns="1" width="100%" styleClass="outerTable" columnClasses="standardTable_ColumnCentered">
				<f:facet name="header">
					<h:outputText value="Signer"  />
				</f:facet>
		
			<div class="allPeopleHolder" >
				<h:dataTable id="signerPerson" value="#{clientPage.personSigner}" var="signer" 
			 		width="100%" >
			 		<h:column >
			 			<f:facet name="header">
							<h:outputText value="Signer Last Name " />
						</f:facet>
						<h:outputText value="#{signer.lastName}" />          					
         			</h:column> 
         			<h:column >
			 			<f:facet name="header">
							<h:outputText value="Signer First Name" />
						</f:facet>
						<h:outputText value="#{signer.firstName}" />          					
         			</h:column> 
         			
         			  
         		</h:dataTable>  
        	 </div>
        	</h:panelGrid>     
	      
		</h:form>
	</ui:define>
</ui:composition>
</div>
</html>
